﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;

namespace UICalture
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn1_Click(object sender, EventArgs e)
        {
            CultureInfo culture = new CultureInfo("zh-CN");
            Session["CurrentLanguage"] = "zh-cn";
            System.Threading.Thread.CurrentThread.CurrentUICulture = culture;
            Server.Transfer(Request.Path);
        }

        protected void btn2_Click(object sender, EventArgs e)
        {
            CultureInfo culture = new CultureInfo("EN-US");
            Session["CurrentLanguage"] = "EN-US";
            System.Threading.Thread.CurrentThread.CurrentUICulture = culture;
            Server.Transfer(Request.Path);
        }
    }
}
